/**
 * OPCodeRateTBL.java
 * @author pkendzo
 * Email: pkendzo@msn.com
 * 2010
 */
package lu.med.praxiswahl.wahlumed.model.beans;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 * @author pkendzo
 *
 */

@NamedQueries
({
   @NamedQuery(name="getAvailableOPCodeRates",
	       query="select co from OPCodeRateTBL co order by priority desc")
})
@Entity
@Table(name = "PRAXIS_OPTARIFE")
public class OPCodeRateTBL implements Serializable
{

    /**
     * 
     */
    private static final long serialVersionUID = 1327376639065534759L;
    
    @Id
    @Column(name = "CODE")
    private String code_label;
    
    @Column(name = "BESCHREIBUNG", nullable = true)
    private String description;
    
    /*
     * 1. class Base price of a OP code rate
     */
    @Column(name = "BASIS_PREIS"/*_1Kl"*/, nullable = true)
    private String base_price;
    
    /*
     * 2. class Base price of a OP code rate
     */
  /*  @Column(name = "BASIS_PREIS_2Kl", nullable = true)
    private String base_price_2cl;*/
    
    /*
     * for sorting the codes rate
     */
    private int priority;

    /**
     * 
     */
    public OPCodeRateTBL()
    {
	// TODO Auto-generated constructor stub
    }


    /**
     * @return the code_label
     */
    public String getCode_label()
    {
        return code_label;
    }

    /**
     * @param code_label the code_label to set
     */
    public void setCode_label(String code_label)
    {
        this.code_label = code_label;
    }

    /**
     * @return the description
     */
    public String getDescription()
    {
        return description;
    }

    /**
     * @param description the description to set
     */
    public void setDescription(String description)
    {
        this.description = description;
    }

    /**
     * @return the base_price
     */
    public String getBase_price()
    {
        return base_price;
    }

    /**
     * @param base_price the base_price to set
     */
    public void setBase_price(String base_price)
    {
        this.base_price = base_price;
    }

    /**
     * @return the priority
     */
    public int getPriority()
    {
        return priority;
    }

    /**
     * @param priority the priority to set
     */
    public void setPriority(int priority)
    {
        this.priority = priority;
    }


    /**
     * @return the base_price_2cl
     */
 /*   public String getBase_price_2cl()
    {
        return base_price_2cl;
    }
    */


    /**
     * @param basePrice_2cl the base_price_2cl to set
     */
  /*  public void setBase_price_2cl(String basePrice_2cl)
    {
        base_price_2cl = basePrice_2cl;
    }*/

    
}
